import request from '@/router/axios';
const urlPrefix = '/admin/video-topic';

export function list(data) {
    return request.post(urlPrefix + '/category/list', data);
}
export function create(data) {
    return request.post(urlPrefix + '/category/add', data);
}
export function update(data) {
    return request.post(urlPrefix + '/category/modify', data);
}
export function removeById(id) {
    return request.post(urlPrefix + '/category/delete', {
        id
    });
}
export function removeByIds(ids) {
    return request.post(urlPrefix + '/category/delete-by-ids', {
        ids
    });
}
